﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace TmU220PrintHelperV2d0.Entity
{
    /// <summary>
    /// 系统配置信息
    /// </summary>
    [XmlRoot("系统配置信息")]
    public class SysCfgInfoV1d0
    {
        [XmlElement("分店ID")]
        public int ShopId { get; set; }
        [XmlElement("Api接口地址")]
        public string ApiMainUrl { get; set; }
        [XmlElement("是否从远程下载打印机配置")]
        public bool IsGetPrinterCfgFromRemote { get; set; }
        [XmlElement("任务超时时间分钟")]
        public int TimeoutOfTask { get; set; }
        [XmlElement("任务检查间隔时间秒钟")]
        public int IntervalOfCheckTask { get; set; }
        [XmlElement("每日系统清理时间")]
        public int HourOfClean { get; set; }
        [XmlElement("日志文件的存续小时数")]
        public int LifeHoursOfLogFile { get; set; }
        [XmlElement("打印数据表的存续小时数")]
        public int LifeHoursOfDatabseTable { get; set; }
        public SysCfgInfoV1d0()
        {
            ShopId =6857;
            ApiMainUrl = "root";
            IsGetPrinterCfgFromRemote = true;
            TimeoutOfTask = 30;
            IntervalOfCheckTask =2;
            LifeHoursOfLogFile = 72;
            LifeHoursOfDatabseTable = 72;
            HourOfClean = 1;//每日凌晨1点
        }
    }
}
